package com.sentrix.auto.printercenter.infrastructure.persistence;

import com.mybatisflex.core.service.IService;
import com.sentrix.auto.printercenter.domain.entity.PrinterAgentEntity;

import java.util.Optional;

public interface IAgentRepository extends IService<PrinterAgentEntity> {
    Optional<PrinterAgentEntity> findByCode(String macAddress);

    void online(PrinterAgentEntity agentEntity);

    void offline(PrinterAgentEntity agentEntity);
}
